contains

abstract fun contains(key: String): Boolean

Returns true if the storage contains an item with the specified key, otherwise false.

Parameters

key

the key name to check. Can be empty or blank

Throws

when the frame is closed

if the access to the storage is forbidden for the current document